package guoanmaker.operator.business.service;

import guoanmaker.operator.business.model.OperatorRoundPhoto;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author huZhaoyu 
 * @ClassName: OperatorRoundPhotoServiceInterface 
 * @Description: OperatorRoundPhotoServiceInterface
 * @date 2017/6/28
 */
public interface OperatorRoundPhotoServiceInterface {

    /** 
    * @Title: saveHotwords
    * @Description: 新增/修改 轮播图
    * @param：OperatorRoundPhoto   
    * @return OperatorRoundPhoto    
    * @throws 
    */
    OperatorRoundPhoto saveRoundPhoto(OperatorRoundPhoto operatorRoundPhoto);

    /** 
    * @Title: getAllRoundphoto
    * @Description: 查询所有轮播图
    * @param：void  
    * @return List<OperatorRoundPhoto>   
    * @throws 
    */
    List<OperatorRoundPhoto> getAllRoundphoto();

    /**
     * 
    * @Title: getAllRoundPhotoByPage 
    * @Description: TODO(这里用一句话描述这个方法的作用) 
    * @param cityCode
    * @return    设定文件 
    * @return List<OperatorRoundPhoto>    返回类型 
    * @throws 
     */
    List<OperatorRoundPhoto> getAllRoundPhotoByPage(String cityCode);

    /** 
    * @Title: deleteRoundPhotoById
    * @Description: 根据Id删除轮播图 
    * @param： String id   
    * @return void   
    * @throws 
    */
    void deleteRoundPhotoById(String id);

    /** 
    * @Title: getRoundPhotoById 
    * @Description: 根据Id查询轮播图
    * @param： String id
    * @return OperatorRoundPhoto    
    * @throws 
    */
    OperatorRoundPhoto getRoundPhotoById(String id);

    /** 
    * @Title: getAllRoundPhotoByWeightAndPage
    * @Description: 按权重排序分页查询轮播图 
     * @param：Integer page 页码  
     * @param：Integer size 条数    
    * @return Page<OperatorRoundPhoto> 
    * @throws 
    */
    Page<OperatorRoundPhoto> getAllRoundPhotoByWeightAndPage(Integer page, Integer size);
    void delectAllBycitycode(String cityCode);
}
